from django.contrib import admin
from satchmo_tryton.models import ObjMapper


class ObjMapperAdmin(admin.ModelAdmin):
    list_display = ('object','content_type', 'object_id', 'tryton_id')
    list_display_links = ('object', 'content_type')
    list_filter = ('content_type', )
    #search_fields = ['object', 'content_type']
    #ordering = ['site', 'parent__id', 'ordering', 'name']
    #inlines = [CategoryImage_Inline]
    #if config_value('LANGUAGE','SHOW_TRANSLATIONS'):
    #    inlines.append(CategoryTranslation_Inline)
    #filter_vertical = ('content_type',)

admin.site.register(ObjMapper, ObjMapperAdmin)
